using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Application.Hr;

/// <summary>
/// 排班表
/// </summary>
public class HrRowWorkDto : AppEntity
{
    /// <summary>
    /// 用户编号
    /// </summary>
    [Required]
    public long EmployeeId { get; set; }

    /// <summary>
    /// 类型（1=请假2=年假3=调休）
    /// </summary>
    [Required]
    public int Type { get; set; } = 0;

    /// <summary>
    /// 班次编号
    /// </summary>
    [Required]
    public long ShiftsId { get; set; } = 0;
    
    /// <summary>
    /// 班次
    /// </summary>
    public HrShiftsDto ShiftsObj { get; set; }

    /// <summary>
    /// 日期
    /// </summary>
    [Required]
    public DateTime Time { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; }=DateTime.Now;

}